﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ClienteSOAPServices.Dominio;
using ClienteSOAPServices.Exceptions;

namespace ClienteSOAPServices
{
    [ServiceContract]
    public interface IClientes
    {
        [OperationContract]
        [FaultContract(typeof(ClienteException))]
        Cliente CrearCliente(string ULogin, string password, Cliente clienteACrear);
        [OperationContract]
        Cliente ObtenerCliente(int codigo);
        [OperationContract]
        Cliente ObtenerClientePorNroDocumento(int NroDocumento);

        [OperationContract]
        Cliente ColaClienteRegistraPost(Cliente _cliente);

        [OperationContract]
        List<Cliente> ListarClientes();
    }
}
